package com.cmw.entity;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import com.cmw.core.base.annotation.Description;
import com.cmw.core.base.entity.IdEntity;

import java.util.Date;


/**
 * 退出登录日志
 * @author 程明卫
 * @date 2017-06-19 17:57:43
 */
@Description(remark="退出登录日志实体",createDate="2017-06-19 17:57:43",author="程明卫")
@Entity
@Table(name="GL_LoginOutLog")
@SuppressWarnings("serial")
public class LoginOutLogEntity extends IdEntity {
	
	
	 @Description(remark="备注")
	 @Column(name="remark" ,length=200 )
	 private String remark;

	 @Description(remark="退出方式")
	 @Column(name="otype" ,nullable=false )
	 private Integer otype = 1;

	 @Description(remark="设备来源")
	 @Column(name="rsource" )
	 private Integer rsource;

	 @Description(remark="登录IP")
	 @Column(name="ip" ,length=75 )
	 private String ip;

	 @Description(remark="退出时间")
	 @Column(name="outTime" ,nullable=false )
	 private Date outTime;

	 @Description(remark="登录日志ID")
	 @Column(name="loginLogId" ,nullable=false )
	 private Long loginLogId;

	 @Description(remark="会员ID")
	 @Column(name="memberId" ,nullable=false )
	 private Long memberId;


	public LoginOutLogEntity() {

	}

	
	/**
	  * 设置备注的值
	 * @param 	remark	 备注
	**/
	public void setRemark(String  remark){
		 this.remark=remark;
 	}

	/**
	  * 获取备注的值
	 * @return 返回备注的值
	**/
	public String getRemark(){
		 return remark;
 	}

	/**
	  * 设置退出方式的值
	 * @param 	otype	 退出方式
	**/
	public void setOtype(Integer  otype){
		 this.otype=otype;
 	}

	/**
	  * 获取退出方式的值
	 * @return 返回退出方式的值
	**/
	public Integer getOtype(){
		 return otype;
 	}

	/**
	  * 设置设备来源的值
	 * @param 	rsource	 设备来源
	**/
	public void setRsource(Integer  rsource){
		 this.rsource=rsource;
 	}

	/**
	  * 获取设备来源的值
	 * @return 返回设备来源的值
	**/
	public Integer getRsource(){
		 return rsource;
 	}

	/**
	  * 设置登录IP的值
	 * @param 	ip	 登录IP
	**/
	public void setIp(String  ip){
		 this.ip=ip;
 	}

	/**
	  * 获取登录IP的值
	 * @return 返回登录IP的值
	**/
	public String getIp(){
		 return ip;
 	}

	/**
	  * 设置退出时间的值
	 * @param 	outTime	 退出时间
	**/
	public void setOutTime(Date  outTime){
		 this.outTime=outTime;
 	}

	/**
	  * 获取退出时间的值
	 * @return 返回退出时间的值
	**/
	public Date getOutTime(){
		 return outTime;
 	}

	/**
	  * 设置登录日志ID的值
	 * @param 	loginLogId	 登录日志ID
	**/
	public void setLoginLogId(Long  loginLogId){
		 this.loginLogId=loginLogId;
 	}

	/**
	  * 获取登录日志ID的值
	 * @return 返回登录日志ID的值
	**/
	public Long getLoginLogId(){
		 return loginLogId;
 	}

	/**
	  * 设置会员ID的值
	 * @param 	memberId	 会员ID
	**/
	public void setMemberId(Long  memberId){
		 this.memberId=memberId;
 	}

	/**
	  * 获取会员ID的值
	 * @return 返回会员ID的值
	**/
	public Long getMemberId(){
		 return memberId;
 	}



	@Override
	public Object[] getDatas() {
		return new Object[]{remark,otype,rsource,ip,outTime,loginLogId,memberId};
	}

	@Override
	public String[] getFields() {
		return new String[]{"remark","otype","rsource","ip","outTime","loginLogId","memberId"};
	}

}
